import request from "@/utils/request";

// cardauctionitem/front/list
export function listAuctionItem(data) {
  return request({
    url: "/cardauctionitem/admin/list",
    method: "post",
    data: data,
  });
}

// /cardauctionitem/addCardAuctionItem
export function addCardAuctionItem(data) {
  return request({
    url: "/cardauctionitem/addCardAuctionItem",
    method: "post",
    data: data,
  });
}
// /cardauctionitem/deleteItemBId
export function deleteItemBId(id) {
  return request({
    url: "/cardauctionitem/deleteItemBId",
    method: "get",
    params: {
      id,
    },
  });
}

// /cardauctionmok/list
export function listAuctionMok(data) {
  return request({
    url: "/cardauctionmok/list",
    method: "post",
    data: data,
  });
}
// /cardauctionmok/add,这个是新增和修改的接口
export function addAuctionMok(data) {
  return request({
    url: "/cardauctionmok/add",
    method: "post",
    data: data,
  });
}
// /cardauctionmok/delete
export function deleteAuctionMok(id) {
  return request({
    url: "/cardauctionmok/delete/" + id,
    method: "get",
  });
}
